<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">

	<Button name="OutfitterTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				PlaySound("igMainMenuOpen");
				PanelTemplates_Tab_OnClick(OutfitterFrame);
				Outfitter:ShowPanel(OutfitterFrame.selectedTab);
			</OnClick>
		</Scripts>
	</Button>

	<CheckButton name="OutfitterCheckboxTemplate" inherits="OptionsCheckButtonTemplate" virtual="true">
	</CheckButton>
	
	<Frame name="OutfitterInputFrameTemplate" hidden="false" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentTopLeft" file="Interface\Common\Common-Input-Border">
					<Size><AbsDimension x="6" y="6"/></Size>
					<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="-2" y="2"/></Offset></Anchor></Anchors>
					<TexCoords left="0" right="0.046875" top="0" bottom="0.1875"/>
				</Texture>
				<Texture name="$parentBottomLeft" file="Interface\Common\Common-Input-Border">
					<Size><AbsDimension x="6" y="6"/></Size>
					<Anchors><Anchor point="BOTTOMLEFT"><Offset><AbsDimension x="-2" y="-2"/></Offset></Anchor></Anchors>
					<TexCoords left="0" right="0.046875" top="0.4375" bottom="0.625"/>
				</Texture>
				<Texture name="$parentTopRight" file="Interface\Common\Common-Input-Border">
					<Size><AbsDimension x="6" y="6"/></Size>
					<Anchors><Anchor point="TOPRIGHT"><Offset><AbsDimension x="2" y="2"/></Offset></Anchor></Anchors>
					<TexCoords left="0.953125" right="1.0" top="0" bottom="0.1875"/>
				</Texture>
				<Texture name="$parentBottomRight" file="Interface\Common\Common-Input-Border">
					<Size><AbsDimension x="6" y="6"/></Size>
					<Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="2" y="-2"/></Offset></Anchor></Anchors>
					<TexCoords left="0.953125" right="1.0" top="0.4375" bottom="0.625"/>
				</Texture>
				<Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
					<Size><AbsDimension x="6" y="0"/></Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentTopLeft" relativePoint="BOTTOM"/>
						<Anchor point="BOTTOM" relativeTo="$parentBottomLeft" relativePoint="TOP"/>
					</Anchors>
					<TexCoords left="0" right="0.046875" top="0.1875" bottom="0.4375"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
					<Size><AbsDimension x="6" y="0"/></Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentTopRight" relativePoint="BOTTOM"/>
						<Anchor point="BOTTOM" relativeTo="$parentBottomRight" relativePoint="TOP"/>
					</Anchors>
					<TexCoords left="0.953125" right="1.0" top="0.1875" bottom="0.4375"/>
				</Texture>
				<Texture name="$parentTop" file="Interface\Common\Common-Input-Border">
					<Size><AbsDimension x="0" y="6"/></Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentTopLeft" relativePoint="RIGHT"/>
						<Anchor point="RIGHT" relativeTo="$parentTopRight" relativePoint="LEFT"/>
					</Anchors>
					<TexCoords left="0.046875" right="0.953125" top="0" bottom="0.1875"/>
				</Texture>
				<Texture name="$parentBottom" file="Interface\Common\Common-Input-Border">
					<Size><AbsDimension x="0" y="6"/></Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentBottomLeft" relativePoint="RIGHT"/>
						<Anchor point="RIGHT" relativeTo="$parentBottomRight" relativePoint="LEFT"/>
					</Anchors>
					<TexCoords left="0.046875" right="0.953125" top="0.4375" bottom="0.625"/>
				</Texture>
				<Texture name="$parentCenter" file="Interface\Common\Common-Input-Border">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="TOPRIGHT" relativeTo="$parentTopRight" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.046875" right="0.953125" top="0.1875" bottom="0.4375"/>
				</Texture>
			</Layer>
		</Layers>
	</Frame>

	<EditBox name="OutfitterInputBoxTemplate" enableKeyboard="true" inherits="OutfitterInputFrameTemplate" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentLabel" inherits="GameFontNormalSmall" text="" justifyH="RIGHT">
					<Anchors>
						<Anchor point="RIGHT" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="-12" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentSuffix" inherits="GameFontNormalSmall" text="" justifyH="LEFT">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				Outfitter.InputBox_OnLoad(0)
			</OnLoad>
			<OnTabPressed>
				Outfitter.InputBox_TabPressed()
			</OnTabPressed>
			<OnEscapePressed>
				MCDebugLib:TestMessage("OnEscapePressed")
				this:ClearFocus()
			</OnEscapePressed>
			<OnEditFocusLost>
				MCDebugLib:TestMessage("OnEditFocusLost")
				-- this:HighlightText(0, 0)
			</OnEditFocusLost>
			<OnEditFocusGained>
				MCDebugLib:TestMessage("OnEditFocusGained")
				this:HighlightText()
			</OnEditFocusGained>
		</Scripts>
		<FontString inherits="ChatFontNormal"/>
	</EditBox>
	
	<Frame name="OutfitterScrollbarTrenchTemplate" virtual="true">
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentTop" file="Interface\Addons\Outfitter\Textures\ScrollbarTrench">
					<Size>
						<AbsDimension x="27" y="26"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.84375" top="0" bottom="0.1015625"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\Addons\Outfitter\Textures\ScrollbarTrench">
					<Size>
						<AbsDimension x="27" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.84375" top="0.1015625" bottom="0.90234375"/>
				</Texture>
				<Texture name="$parentBottom" file="Interface\Addons\Outfitter\Textures\ScrollbarTrench">
					<Size>
						<AbsDimension x="27" y="25"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.84375" top="0.90234375" bottom="1"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnSizeChanged>
				Outfitter.ScrollbarTrench_SizeChanged(this);
			</OnSizeChanged>
		</Scripts>
	</Frame>

	<CheckButton name="OutfitterEnableTemplate" virtual="true">
		<Size>
			<AbsDimension x="24" y="24"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture>
					<Size>
						<AbsDimension x="14" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
					<Color r="0" g="0" b="0" a="0.6"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				Outfitter:SlotEnableClicked(this, arg1);
			</OnClick>
            <OnReceiveDrag>
                Outfitter:SlotEnableClicked(this, "LeftButton", 1);
            </OnReceiveDrag>
            <OnEnter>
				GameTooltip_AddNewbieTip(Outfitter.cSlotEnableTitle, 1, 1, 1, Outfitter.cSlotEnableDescription, 1);
            </OnEnter>
            <OnLeave>
				GameTooltip:Hide();
            </OnLeave>
		</Scripts>
		<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
		<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
		<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
		<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
	</CheckButton>

	<Slider name="Outfitter_SliderTemplate" virtual="true">
		<Size>
			<AbsDimension x="16" y="0"/>
		</Size>
		<Frames>
			<Button name="$parentScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="TOP"/>
				</Anchors>
				<Scripts>
					<OnClick>
						local parent = this:GetParent()
						parent:SetValue(parent:GetValue() - 1)
						PlaySound("UChatScrollButton")
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM"/>
				</Anchors>
				<Scripts>
					<OnClick>
						local parent = this:GetParent()
						parent:SetValue(parent:GetValue() + 1)
						PlaySound("UChatScrollButton")
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnValueChanged>
				this:GetParent():SetVerticalScroll(arg1)
			</OnValueChanged>
		</Scripts>
		<ThumbTexture name="$parentThumbTexture" inherits="UIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
			<Size>
				<AbsDimension x="16" y="16"/>
			</Size>
		</ThumbTexture>
	</Slider>
	<ScrollFrame name="Outfitter_ScrollFrameTemplate" virtual="true">
		<Frames>
			<Slider name="$parentScrollBar" inherits="Outfitter_SliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="6" y="-16"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="6" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
		</Frames>
		<Scripts>
			<OnLoad>
				getglobal(this:GetName().."ScrollBar"):SetValueStep(1);
			</OnLoad>
			<OnVerticalScroll>
				local scrollbar = getglobal(this:GetName().."ScrollBar");
				local val = scrollbar:GetValue()
				local min, max = scrollbar:GetMinMaxValues();

				if arg1 == min then
					getglobal(scrollbar:GetName().."ScrollUpButton"):Disable();
				else
					getglobal(scrollbar:GetName().."ScrollUpButton"):Enable();
				end
				if scrollbar:GetValue() == max then
					getglobal(scrollbar:GetName().."ScrollDownButton"):Disable();
				else
					getglobal(scrollbar:GetName().."ScrollDownButton"):Enable();
				end

				Outfitter:OnScroll(this)
			</OnVerticalScroll>
		</Scripts>
	</ScrollFrame>

	<Button name="Outfitter_ListButtonTemplate" hidden="false" virtual="true">
		<Size>
			<AbsDimension x="140" y="16"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
					<Size>
						<AbsDimension x="140" y="16"/>
					</Size>
					<Color r="1.0" g="1.0" b="1.0"/>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 1);

				this.Number = tonumber(string.sub(this:GetName(), string.len(this:GetName())-1)) -- assuming 2 digits
				if not this.Number then
					this.Number = tonumber(string.sub(this:GetName(), string.len(this:GetName()))) -- assuming one digit
				end
			</OnLoad>
			<OnClick>
				Outfitter:ListButton_OnClick(this);
			</OnClick>
			<OnEnter>
				Outfitter:ListButton_OnEnter(this)
			</OnEnter>
			<OnLeave>
				Outfitter:ListButton_OnLeave(this)
			</OnLeave>
			<OnMouseWheel>
				local scrollbar = getglobal(this:GetParent():GetName().."ScrollFrameScrollBar")
				local scrollbarupbutton = getglobal(this:GetParent():GetName().."ScrollFrameScrollBarScrollUpButton")
				local scrollbardownbutton = getglobal(this:GetParent():GetName().."ScrollFrameScrollBarScrollDownButton")
				if not scrollbar:IsVisible() then
				elseif arg1 > 0 then -- up,down = 1,-1
					local parent = scrollbarupbutton:GetParent()
					parent:SetValue(parent:GetValue() - 1)
					PlaySound("UChatScrollButton")
				else
					local parent = scrollbardownbutton:GetParent()
					parent:SetValue(parent:GetValue() + 1)
					PlaySound("UChatScrollButton")
				end
				Outfitter:ListButton_OnLeave(this)
				Outfitter:ListButton_OnEnter(this)
			</OnMouseWheel>
		</Scripts>
	</Button>
	<Button name="OutfitterSmallButtonTemplate" virtual="true">
		<ButtonText name="$parentText"/>
		<NormalFont inherits="GameFontNormalSmall"/>
		<HighlightFont inherits="GameFontHighlightSmall"/>
		<DisabledFont inherits="GameFontDisableSmall"/>
		<NormalTexture inherits="UIPanelButtonUpTexture"/>
		<PushedTexture inherits="UIPanelButtonDownTexture"/>
		<DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
		<HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
	</Button>
	<Button name="OutfitterItemMenuTemplate" virtual="true">
		<Size>
			<AbsDimension x="17" y="17"/>
		</Size>
		<Scripts>
			<OnClick>
				ToggleDropDownMenu(nil, nil, this, this);
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
			<OnHide>
				CloseDropDownMenus();
			</OnHide>
			<OnLoad>
				this.SavedHeight = this:GetHeight();
				this.ChangedValueFunc = Outfitter.OutfitItemSelected;
			</OnLoad>
			<OnShow>
				Outfitter.ItemDropDown_OnLoad(this);
			</OnShow>
		</Scripts>
		<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up">
			<TexCoords left="0.09375" top="0.09375" right="0.90625" bottom="0.90625"/>
		</NormalTexture>
		<PushedTexture name="$parentPushedTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down">
			<TexCoords left="0.09375" top="0.09375" right="0.90625" bottom="0.90625"/>
		</PushedTexture>
		<DisabledTexture name="$parentDisabledTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled">
			<TexCoords left="0.09375" top="0.09375" right="0.90625" bottom="0.90625"/>
		</DisabledTexture>
		<HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
	</Button>
	<Frame name="OutfitterItemTemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="224" y="18"/>
		</Size>
		<Frames>
			<Frame name="$parentItem" hidden="true" setAllPoints="true">
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="$parentIcon" file="">
							<Size>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="28" y="-1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
						<FontString name="$parentName" text="Outfit name" inherits="GameFontNormal" justifyH="LEFT"
							justifyV="BOTTOM">
							<Size>
								<AbsDimension x="175" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentIcon" relativePoint="TOPRIGHT">
									<Offset>
										<AbsDimension x="3" y="2"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentOutfit" hidden="true" setAllPoints="true">
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentName" text="Outfit name" inherits="GameFontNormal" justifyH="LEFT"
							justifyV="BOTTOM">
							<Size>
								<AbsDimension x="159" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="28" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<Texture name="$parentScriptIcon" file="">
							<Size>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="-2"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<CheckButton name="$parentSelected" hidden="false">
						<Size>
							<AbsDimension x="24" y="24"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="5" y="-3"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								Outfitter.Item_CheckboxClicked(this:GetParent():GetParent());
							</OnClick>
						</Scripts>
						<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
						<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
						<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
						<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
						<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
					</CheckButton>
					<Button name="$parentMenu" inherits="OutfitterItemMenuTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentScriptIcon" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
				</Frames>
			</Frame>
			<Frame name="$parentCategory" hidden="true" setAllPoints="true">
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT" justifyV="BOTTOM">
							<Size>
								<AbsDimension x="200" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="21" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Color r="1" g="1" b="1"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parentExpand">
						<Size>
							<AbsDimension x="16" y="16"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="5" y="1"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
							</OnLoad>
							<OnClick>
								Outfitter.Item_OnClick(this:GetParent():GetParent(), arg1);
							</OnClick>
						</Scripts>
						<NormalTexture setAllPoints="true" file="Interface\Buttons\UI-MinusButton-UP"/>
						<HighlightTexture setAllPoints="true" name="$parentHighlight" file="Interface\Buttons\UI-PlusButton-Hilight"
							alphaMode="ADD"/>
					</Button>
				</Frames>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp")
				this.OutfitMenu = getglobal(this:GetName().."OutfitMenu")
			</OnLoad>
			<OnClick>
				Outfitter.Item_OnClick(this, arg1)
			</OnClick>
			<OnEnter>
				Outfitter.Item_OnEnter(this)
			</OnEnter>
			<OnLeave>
				Outfitter.Item_OnLeave(this)
			</OnLeave>
		</Scripts>
	</Frame>
	<Frame name="OutfitterButtonFrame" hidden="false" parent="PaperDollFrame" setAllPoints="true">
		<Frames>
			<Button name="OutfitterButton" hidden="false">
				<Size>
					<AbsDimension x="64" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-32" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Outfitter:ToggleOutfitterFrame();
					</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Addons\Outfitter\Textures\Outfitter-Button">
					<TexCoords left="0" right="1" top="0" bottom="0.5"/>
				</NormalTexture>
				<PushedTexture file="Interface\Addons\Outfitter\Textures\Outfitter-Button">
					<TexCoords left="0" right="1" top="0.5" bottom="1"/>
				</PushedTexture>
				<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
			</Button>
			<Frame name="OutfitterFrame" enableMouse="true" hidden="true">
				<Size>
					<AbsDimension x="256" y="344"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-33" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" text="Outfitter_cTitleVersion" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="TOP">
									<Offset>
										<AbsDimension x="-10" y="-6"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button name="OutfitterCloseButton" inherits="UIPanelCloseButton">
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset x="5" y="5"/>
							</Anchor>
						</Anchors>
					</Button>
					<Frame name="OutfitterMainFrame" hidden="true" setAllPoints="true">
						<Layers>
							<Layer level="OVERLAY">
								<Texture name="$parentHighlight" hidden="true" alphaMode="ADD" file="Interface\HelpFrame\HelpFrameButton-Highlight">
									<Size x="224" y="18"/>
									<Anchors>
										<Anchor point="TOPLEFT"/>
									</Anchors>
									<TexCoords left="0" right="1.0" top="0" bottom="0.578125"/>
								</Texture>
								<FontString text="Outfitter_cTitle" inherits="GameFontNormalLarge">
									<Anchors>
										<Anchor point="TOP">
											<Offset>
												<AbsDimension x="0" y="-36"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
							<Layer level="BACKGROUND">
								<Texture name="$parentBackground" file="Interface\Addons\Outfitter\Textures\Icon">
									<Size>
										<AbsDimension x="226" y="226"/>
									</Size>
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="-13" y="-20"/>
											</Offset>
										</Anchor>
									</Anchors>
								</Texture>
								<Texture name="$parentButtonBarBackground" file="Interface\Addons\Outfitter\Textures\ButtonBarBackground">
									<Size>
										<AbsDimension x="253" y="20"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOMLEFT">
											<Offset>
												<AbsDimension x="0" y="7"/>
											</Offset>
										</Anchor>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Frames>
							<Frame name="$parentScrollbarTrench" inherits="OutfitterScrollbarTrenchTemplate">
								<Size>
									<AbsDimension x="27" y="258"/>
								</Size>
								<Anchors>
									<Anchor point="BOTTOMRIGHT" relativeTo="$parentButtonBarBackground" relativePoint="TOPRIGHT">
										<Offset>
											<AbsDimension x="0" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Frame>
							<Button name="OutfitterItem0" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="1" y="-63"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Button name="OutfitterItem1" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem0" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem2" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem1" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem3" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem2" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem4" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem3" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem5" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem4" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem6" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem5" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem7" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem6" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem8" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem7" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem9" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem8" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem10" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem9" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem11" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem10" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem12" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem11" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<Button name="OutfitterItem13" inherits="OutfitterItemTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem12" relativePoint="BOTTOMLEFT"/>
								</Anchors>
							</Button>
							<ScrollFrame name="$parentScrollFrame" hidden="false" inherits="FauxScrollFrameTemplate">
								<Size>
									<AbsDimension x="224" y="252"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterItem0">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnVerticalScroll>
										FauxScrollFrame_OnVerticalScroll(OutfitterItem0:GetHeight(), Outfitter.OnVerticalScroll);
									</OnVerticalScroll>
								</Scripts>
							</ScrollFrame>
							<Button name="OutfitterNewButton" inherits="UIPanelButtonTemplate" text="Outfitter_cNewOutfit">
								<Size>
									<AbsDimension x="115" y="21"/>
								</Size>
								<Anchors>
									<Anchor point="BOTTOMRIGHT">
										<Offset>
											<AbsDimension x="-7" y="6"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										PlaySound("igMainMenuOptionCheckBoxOn");
										Outfitter:CreateNewOutfit();
									</OnClick>
								</Scripts>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								OutfitterMainFrameBackground:SetVertexColor(1, 1, 1, 0.20);
							</OnLoad>
						</Scripts>
					</Frame>
					
					<Frame name="OutfitterOptionsFrame" hidden="true" setAllPoints="true">
						<Layers>
							<Layer level="BACKGROUND">
								<Texture name="$parentBackground" file="Interface\Addons\Outfitter\Textures\MinimapButton">
									<Size>
										<AbsDimension x="280" y="280"/>
									</Size>
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="0" y="-30"/>
											</Offset>
										</Anchor>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<FontString text="Outfitter_cOptionsTitle" inherits="GameFontNormalLarge">
									<Anchors>
										<Anchor point="TOP">
											<Offset>
												<AbsDimension x="0" y="-36"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<CheckButton name="OutfitterAutoSwitch" inherits="OptionsCheckButtonTemplate">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="15" y="-90"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										getglobal(this:GetName().."Text"):SetText(Outfitter.cAutoSwitch);
									</OnLoad>
									<OnClick>
										Outfitter:SetAutoSwitch(not this:GetChecked());
									</OnClick>
									<OnEnter>
										if this:GetChecked() then
											GameTooltip_AddNewbieTip(Outfitter.cAutoSwitch, 1.0, 1.0, 1.0, Outfitter.cAutoSwitchOnDescription, 1);
										else
											GameTooltip_AddNewbieTip(Outfitter.cAutoSwitch, 1.0, 1.0, 1.0, Outfitter.cAutoSwitchOffDescription, 1);
										end
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</CheckButton>
							<CheckButton name="OutfitterShowOutfitBar" inherits="OptionsCheckButtonTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterAutoSwitch" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="-10"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										getglobal(this:GetName().."Text"):SetText(Outfitter.cShowOutfitBar)
									</OnLoad>
									<OnClick>
										if Outfitter.OutfitBar then
											Outfitter.OutfitBar:SetShowOutfitBar(this:GetChecked())
										end
									</OnClick>
									<OnEnter>
										GameTooltip_AddNewbieTip(Outfitter.cShowOutfitBar, 1.0, 1.0, 1.0, Outfitter.cShowOutfitBarDescription, 1)
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide()
									</OnLeave>
								</Scripts>
							</CheckButton>
							<CheckButton name="OutfitterShowMinimapButton" inherits="OptionsCheckButtonTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterShowOutfitBar" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="-5"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										getglobal(this:GetName().."Text"):SetText(Outfitter.cShowMinimapButton);
									</OnLoad>
									<OnClick>
										Outfitter:SetShowMinimapButton(this:GetChecked());
									</OnClick>
									<OnEnter>
										if this:GetChecked() then
											GameTooltip_AddNewbieTip(Outfitter.cShowMinimapButton, 1.0, 1.0, 1.0, Outfitter.cShowMinimapButtonOnDescription, 1);
										else
											GameTooltip_AddNewbieTip(Outfitter.cShowMinimapButton, 1.0, 1.0, 1.0, Outfitter.cShowMinimapButtonOffDescription, 1);
										end
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</CheckButton>
							<CheckButton name="OutfitterShowHotkeyMessages" inherits="OptionsCheckButtonTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterShowMinimapButton" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="-5"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										getglobal(this:GetName().."Text"):SetText(Outfitter.cShowHotkeyMessages);
									</OnLoad>
									<OnClick>
										Outfitter:SetShowHotkeyMessages(this:GetChecked());
									</OnClick>
									<OnEnter>
										if this:GetChecked() then
											GameTooltip_AddNewbieTip(Outfitter.cShowHotkeyMessages, 1.0, 1.0, 1.0, Outfitter.cShowHotkeyMessagesOnDescription, 1);
										else
											GameTooltip_AddNewbieTip(Outfitter.cShowHotkeyMessages, 1.0, 1.0, 1.0, Outfitter.cShowHotkeyMessagesOffDescription, 1);
										end
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</CheckButton>
							<CheckButton name="OutfitterTooltipInfo" inherits="OptionsCheckButtonTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="OutfitterShowHotkeyMessages" relativePoint="BOTTOMLEFT">
										<Offset>
											<AbsDimension x="0" y="-5"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										getglobal(this:GetName().."Text"):SetText(Outfitter.cTooltipInfo);
									</OnLoad>
									<OnClick>
										Outfitter:SetShowTooltipInfo(this:GetChecked());
									</OnClick>
									<OnEnter>
										if this:GetChecked() then
											GameTooltip_AddNewbieTip(Outfitter.cTooltipInfo, 1.0, 1.0, 1.0, Outfitter.cTooltipInfoOnDescription, 1);
										else
											GameTooltip_AddNewbieTip(Outfitter.cTooltipInfo, 1.0, 1.0, 1.0, Outfitter.cTooltipInfoOffDescription, 1);
										end
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</CheckButton>
						</Frames>
						<Scripts>
							<OnLoad>
								OutfitterOptionsFrameBackground:SetVertexColor(1, 1, 1, 0.20);
							</OnLoad>
						</Scripts>
					</Frame>
					
					<Frame name="OutfitterAboutFrame" hidden="true" setAllPoints="true">
						<Layers>
							<Layer level="BACKGROUND">
								<Texture file="Interface\Addons\Outfitter\Textures\GuildLogo2">
									<Size>
										<AbsDimension x="220" y="220"/>
									</Size>
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="0" y="-30"/>
											</Offset>
										</Anchor>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<FontString name="OutfitterAboutTitle" text="Outfitter_cAboutTitle" inherits="GameFontNormalLarge">
									<Size>
										<AbsDimension x="230" y="0"/>
									</Size>
									<Anchors>
										<Anchor point="TOP">
											<Offset>
												<AbsDimension x="-4" y="-36"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
								<FontString name="OutfitterAboutTitleVersion" text="Outfitter_cTitleVersion" inherits="GameFontNormalLarge">
									<Size>
										<AbsDimension x="230" y="0"/>
									</Size>
									<Anchors>
										<Anchor point="TOP" relativeTo="OutfitterAboutTitle" relativePoint="BOTTOM">
											<Offset><AbsDimension x="0" y="-15"/></Offset>
										</Anchor>
									</Anchors>
								</FontString>
								<FontString name="OutfitterAboutAuthor" text="Outfitter_cAuthor" inherits="GameFontHighlight">
									<Size>
										<AbsDimension x="230" y="0"/>
									</Size>
									<Anchors>
										<Anchor point="TOP" relativeTo="OutfitterAboutTitleVersion" relativePoint="BOTTOM">
											<Offset><AbsDimension x="0" y="-5"/></Offset>
										</Anchor>
									</Anchors>
								</FontString>
								<FontString name="OutfitterTestersTitle" text="Outfitter_cTestersTitle" inherits="GameFontNormal">
									<Size>
										<AbsDimension x="230" y="0"/>
									</Size>
									<Anchors>
										<Anchor point="TOP" relativeTo="OutfitterAboutAuthor" relativePoint="BOTTOM">
											<Offset>
												<AbsDimension x="0" y="-10"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
								<FontString name="OutfitterTestersNames" text="Outfitter_cTestersNames" inherits="GameFontHighlightSmall">
									<Size>
										<AbsDimension x="230" y="0"/>
									</Size>
									<Anchors>
										<Anchor point="TOP" relativeTo="OutfitterTestersTitle" relativePoint="BOTTOM">
											<Offset>
												<AbsDimension x="0" y="-5"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
								<FontString name="OutfitterSpecialThanksTitle" text="Outfitter_cSpecialThanksTitle" inherits="GameFontNormal">
									<Size>
										<AbsDimension x="230" y="0"/>
									</Size>
									<Anchors>
										<Anchor point="TOP" relativeTo="OutfitterTestersNames" relativePoint="BOTTOM">
											<Offset>
												<AbsDimension x="0" y="-10"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
								<FontString name="OutfitterSpecialThanksNames" text="Outfitter_cSpecialThanksNames" inherits="GameFontHighlightSmall">
									<Size>
										<AbsDimension x="230" y="0"/>
									</Size>
									<Anchors>
										<Anchor point="TOP" relativeTo="OutfitterSpecialThanksTitle" relativePoint="BOTTOM">
											<Offset>
												<AbsDimension x="0" y="-5"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
								<FontString name="OutfitterURL" text="Outfitter_cURL" inherits="GameFontHighlightSmall">
									<Size>
										<AbsDimension x="230" y="0"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOM">
											<Offset>
												<AbsDimension x="0" y="20"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
								<FontString name="OutfitterTranslationCredit" text="Outfitter_cTranslationCredit" inherits="GameFontHighlightSmall">
									<Size>
										<AbsDimension x="230" y="0"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOM" relativeTo="OutfitterURL" relativePoint="TOP">
											<Offset>
												<AbsDimension x="0" y="10"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</Frame>
					<Button name="OutfitterFrameTab1" inherits="OutfitterTabTemplate" id="1" text="Outfitter_cOutfitterTabTitle">
						<Anchors>
							<Anchor point="BOTTOMRIGHT">
								<Offset x="-7" y="-31"/>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="OutfitterFrameTab2" inherits="OutfitterTabTemplate" id="2" text="Outfitter_cOptionsTabTitle">
						<Anchors>
							<Anchor point="RIGHT" relativeTo="OutfitterFrameTab1" relativePoint="LEFT">
								<Offset x="16" y="0"/>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="OutfitterFrameTab3" inherits="OutfitterTabTemplate" id="3" text="Outfitter_cAboutTabTitle">
						<Anchors>
							<Anchor point="RIGHT" relativeTo="OutfitterFrameTab2" relativePoint="LEFT">
								<Offset x="16" y="0"/>
							</Anchor>
						</Anchors>
					</Button>
				</Frames>
				<Scripts>
					<OnLoad>
						Outfitter:OnLoad()
					</OnLoad>
					<OnShow>
						Outfitter:OnShow()
					</OnShow>
					<OnHide>
						Outfitter:OnHide()
					</OnHide>
				</Scripts>
			</Frame>
			<Frame name="OutfitterSlotEnables" hidden="true" setAllPoints="true">
				<Frames>
					<Button name="OutfitterEnableAll" inherits="OutfitterSmallButtonTemplate" text="Outfitter_cEnableNone">
						<Size x="80" y="18"/>
						<Anchors>
							<Anchor point="TOP" relativeTo="PaperDollFrame">
								<Offset x="-45" y="-53"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								PlaySound("igMainMenuOptionCheckBoxOn");
								Outfitter:SetAllSlotEnables(false);
							</OnClick>
						</Scripts>
					</Button>
					<Button name="OutfitterEnableNone" inherits="OutfitterSmallButtonTemplate" text="Outfitter_cEnableAll">
						<Size x="80" y="18"/>
						<Anchors>
							<Anchor point="TOP" relativeTo="PaperDollFrame">
								<Offset x="45" y="-53"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								PlaySound("igMainMenuOptionCheckBoxOn");
								Outfitter:SetAllSlotEnables(true);
							</OnClick>
						</Scripts>
					</Button>
					<CheckButton name="OutfitterEnableHeadSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterHeadSlot">
								<Offset x="-4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "HeadSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableNeckSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterNeckSlot">
								<Offset x="-4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "NeckSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableShoulderSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterShoulderSlot">
								<Offset x="-4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "ShoulderSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableBackSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterBackSlot">
								<Offset x="-4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "BackSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableChestSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterChestSlot">
								<Offset x="-4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "ChestSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableShirtSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterShirtSlot">
								<Offset x="-4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "ShirtSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableTabardSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterTabardSlot">
								<Offset x="-4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "TabardSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableWristSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterWristSlot">
								<Offset x="-4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "WristSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableHandsSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="CharacterHandsSlot">
								<Offset x="4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "HandsSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableWaistSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="CharacterWaistSlot">
								<Offset x="4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "WaistSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableLegsSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="CharacterLegsSlot">
								<Offset x="4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "LegsSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableFeetSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="CharacterFeetSlot">
								<Offset x="4" y="4"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "FeetSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableFinger0Slot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="CharacterFinger0Slot">
								<Offset>
									<AbsDimension x="4" y="4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "Finger0Slot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableFinger1Slot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="CharacterFinger1Slot">
								<Offset>
									<AbsDimension x="4" y="4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "Finger1Slot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableTrinket0Slot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="CharacterTrinket0Slot">
								<Offset>
									<AbsDimension x="4" y="4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "Trinket0Slot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableTrinket1Slot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="CharacterTrinket1Slot">
								<Offset>
									<AbsDimension x="4" y="4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "Trinket1Slot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableMainHandSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterMainHandSlot">
								<Offset>
									<AbsDimension x="-4" y="4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "MainHandSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableSecondaryHandSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterSecondaryHandSlot">
								<Offset>
									<AbsDimension x="-4" y="4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "SecondaryHandSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableRangedSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterRangedSlot">
								<Offset>
									<AbsDimension x="-4" y="4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "RangedSlot";</OnLoad>
						</Scripts>
					</CheckButton>
					<CheckButton name="OutfitterEnableAmmoSlot" inherits="OutfitterEnableTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CharacterAmmoSlot">
								<Offset>
									<AbsDimension x="-4" y="4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>this.SlotName = "AmmoSlot";</OnLoad>
						</Scripts>
					</CheckButton>
				</Frames>
				<Scripts>
					<OnShow>
						PlayerTitleDropDown:Hide();		
					</OnShow>
					<OnHide>
						if not PlayerTitleDropDown.titleCount or PlayerTitleDropDown.titleCount >= 1 then
							PlayerTitleDropDown:Show();
						end
					</OnHide>
				</Scripts>
			</Frame>
		</Frames>
	</Frame>
	<Frame name="OutfitterNameOutfitDialog" toplevel="true" frameStrata="DIALOG" enableMouse="true"
		hidden="true" parent="UIParent">
		<Size>
			<AbsDimension x="315" y="207"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" relativeTo="OutfitterFrame" relativePoint="CENTER"/>
		</Anchors>
		<Backdrop bgFile="Interface\Addons\Outfitter\Textures\DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="256" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentTitle" inherits="GameFontNormal" text="Outfitter_cNewOutfit">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentFrameHeader">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentError" inherits="GameFontRed" hidden="true" text="Outfitter_cNameAlreadyUsedError">
					<Size>
						<AbsDimension x="280" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOM">
							<Offset>
								<AbsDimension x="0" y="48"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<EditBox name="$parentName" letters="40" historyLines="0" autoFocus="false" inherits="OutfitterInputBoxTemplate">
				<Size>
					<AbsDimension x="170" y="18"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="115" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						Outfitter.InputBox_OnLoad(0);
						getglobal(this:GetName().."Label"):SetText(Outfitter.cNameLabel);
					</OnLoad>
					<OnTextChanged>
						Outfitter.NameOutfit_Update()
					</OnTextChanged>
					<OnEscapePressed>
						this:ClearFocus();
					</OnEscapePressed>
					<OnEnterPressed>
						Outfitter.NameOutfit_Done();
					</OnEnterPressed>
				</Scripts>
				<FontString inherits="ChatFontNormal"/>
			</EditBox>
			<Frame name="$parentAutomation" inherits="UIDropDownMenuTemplate" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentName">
						<Offset>
							<AbsDimension x="-24" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" text="Outfitter_cAutomationLabel" inherits="GameFontNormalSmall">
							<Anchors>
								<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="14" y="13"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						Outfitter.AutomationDropdown_OnLoad();
					</OnLoad>
					<OnShow>
						Outfitter.AutomationDropdown_OnLoad();
					</OnShow>
				</Scripts>
			</Frame>
			<Frame name="$parentCreateUsing" inherits="UIDropDownMenuTemplate" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentAutomation">
						<Offset>
							<AbsDimension x="0" y="-35"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" text="Outfitter_cCreateUsingTitle" inherits="GameFontNormalSmall">
							<Anchors>
								<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="14" y="13"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						Outfitter.StatDropdown_OnLoad();
					</OnLoad>
					<OnShow>
						Outfitter.StatDropdown_OnLoad();
					</OnShow>
				</Scripts>
			</Frame>
			<Button name="$parentCancelButton" inherits="UIPanelButtonTemplate" text="CANCEL">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-15" y="20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn");
						Outfitter.NameOutfit_Cancel();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentDoneButton" inherits="UIPanelButtonTemplate" text="OKAY">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parentCancelButton" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-7" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn");
						Outfitter.NameOutfit_Done();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				this.baseHeight = this:GetHeight();
			</OnLoad>
			<OnShow>
				Outfitter.NameOutfit_Update();
			</OnShow>
		</Scripts>
	</Frame>
	<Button name="OutfitterMinimapButton" hidden="false" enableMouse="true" movable="true" parent="MinimapBackdrop">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER">
				<Offset><AbsDimension x="-80" y="0"/></Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad>
				this:RegisterForDrag("LeftButton");
			</OnLoad>
			<OnDragStart>
				Outfitter.MinimapButton_DragStart();
			</OnDragStart>
			<OnDragStop>
				Outfitter.MinimapButton_DragEnd();
			</OnDragStop>
			<OnMouseDown>
				Outfitter.MinimapButton_MouseDown();
			</OnMouseDown>
			<OnMouseUp>
				Outfitter.MinimapDropDown_OnLoad();
				this.ChangedValueFunc = Outfitter.MinimapButton_ItemSelected;
				ToggleDropDownMenu(nil, nil, this, this, 22, 1);
				
				-- Hack to force the menu to position correctly.  UIDropDownMenu code
				-- keeps thinking that it's off the screen and trying to reposition
				-- it, which it does very poorly
				
				Outfitter.MinimapDropDown_AdjustScreenPosition(this);
				
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnMouseUp>
			<OnEnter>
				GameTooltip_AddNewbieTip(Outfitter.cMinimapButtonTitle, 1, 1, 1, Outfitter.cMinimapButtonDescription, 1);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<NormalTexture file="Interface\Addons\Outfitter\Textures\MinimapButton"/>
		<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
	</Button>
	
	<GameTooltip name="OutfitterTooltip" parent="UIParent" hidden="true" inherits="GameTooltipTemplate">
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
	</GameTooltip>
	
	<Frame name="OutfitterQuickSlotsTemplate" enableMouse="true" frameStrata="DIALOG" hidden="true" virtual="true">
	</Frame>

	<Frame name="OutfitterQuickSlotItemTemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="37" y="37"/>
		</Size>
		<Frames>
			<Button name="$parentItem1" hidden="false" inherits="ContainerFrameItemButtonTemplate">
				<Scripts>
					<OnLoad>
						this.UpdateTooltip = Outfitter.QuickSlotItemButton_OnUpdate
					</OnLoad>
					<OnEnter>
						Outfitter.QuickSlotItemButton_OnEnter(this)
					</OnEnter>
					<OnUpdate>
						if GameTooltip:IsOwned(this) then
							Outfitter.QuickSlotItemButton_OnUpdate(this)
						end
					</OnUpdate>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				this.size = 1
			</OnLoad>
			<OnShow>
				this:OnShow()
			</OnShow>
			<OnHide>
				this:OnHide()
			</OnHide>
		</Scripts>
	</Frame>
	
	<ScrollFrame name="OutfitterScrollableEditBox" virtual="true" enableMouse="true" inherits="UIPanelScrollFrameTemplate, OutfitterInputFrameTemplate">
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentLabel" inherits="GameFontNormal" text="" justifyH="RIGHT">
					<Anchors>
						<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="-12" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<ScrollChild>
			<Frame>
				<Size><AbsDimension x="400" y="200"/></Size>
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="4" y="2"/></Offset></Anchor>
				</Anchors>
				<Scripts>
					<OnMouseUp>
						this.EditBox:SetFocus();
					</OnMouseUp> 
					<OnShow>
						local	vFrameLevel = this:GetParent():GetFrameLevel();
						
						this:SetFrameLevel(vFrameLevel + 5);
						this.EditBox:SetFrameLevel(vFrameLevel + 6);
					</OnShow>
				</Scripts>
				<Frames>
					<EditBox name="$parentEditBox" letters="4000" historyLines="0" autoFocus="false" multiLine="true" enableMouse="true">
						<Anchors><Anchor point="TOPLEFT"/></Anchors>
						<Size><AbsDimension x="400" y="0"/></Size>
						<Scripts>
							<OnLoad>
								this:GetParent().EditBox = this;
								Outfitter.InputBox_OnLoad(3);
							</OnLoad>
							<OnTextChanged>
								ScrollingEdit_OnTextChanged(this:GetParent():GetParent());
								
								if this.TextChanged then
									this:TextChanged();
								end
							</OnTextChanged>
							<OnEditFocusLost>
								this:HighlightText(0, 0);
							</OnEditFocusLost>
							<OnCursorChanged>
								ScrollingEdit_OnCursorChanged(arg1, arg2-10, arg3, arg4);
							</OnCursorChanged>
							<OnUpdate>
								ScrollingEdit_OnUpdate(this:GetParent():GetParent());
							</OnUpdate>
							<OnTabPressed>
								Outfitter.InputBox_TabPressed();
							</OnTabPressed>
							<OnEscapePressed>
								this:ClearFocus();
							</OnEscapePressed>
						</Scripts>
						<TextInsets left="2" top="2" right="2" bottom="2"/>
						<FontString inherits="ChatFontNormal"/>
					</EditBox>
				</Frames>
			</Frame>
		</ScrollChild>
	</ScrollFrame>
	
	<Button name="OutfitterZoneListButton" virtual="true" inherits="UIPanelButtonTemplate">
		<Size>
			<AbsDimension x="150" y="21"/>
		</Size>
		<Scripts>
			<OnShow>
				this:SetText(string.format(Outfitter.cInsertFormat, this.GetTextFunc()));
				
				this:RegisterEvent("ZONE_CHANGED_NEW_AREA");
				this:RegisterEvent("ZONE_CHANGED_INDOORS");
				this:RegisterEvent("ZONE_CHANGED");
			</OnShow>
			<OnHide>
				this:UnregisterEvent("ZONE_CHANGED_NEW_AREA");
				this:UnregisterEvent("ZONE_CHANGED_INDOORS");
				this:UnregisterEvent("ZONE_CHANGED");
			</OnHide>
			<OnEvent>
				this:SetText(string.format(Outfitter.cInsertFormat, this.GetTextFunc()));
			</OnEvent>
			<OnClick>
				PlaySound("igMainMenuOptionCheckBoxOn");
				local	vEditBox = getglobal(this:GetParent():GetName().."EditBox");
				vEditBox:Insert(this.GetTextFunc().."\n");
			</OnClick>
		</Scripts>
	</Button>
	
	<ScrollFrame name="OutfitterZoneListEditBox" virtual="true" inherits="OutfitterScrollableEditBox">
		<Frames>
			<Button name="$parentZoneButton" inherits="OutfitterZoneListButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="25" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this.GetTextFunc = GetRealZoneText;
					</OnLoad>
				</Scripts>
			</Button>
		</Frames>
	</ScrollFrame>
	
	<Button name="OutfitterScriptTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				PlaySound("igMainMenuOpen");
				PanelTemplates_Tab_OnClick(this:GetParent());
				this:GetParent():SetPanelIndex(this:GetParent().selectedTab);
			</OnClick>
		</Scripts>
	</Button>
	
	<Frame name="OutfitterEditScriptDialog" toplevel="true" frameStrata="DIALOG" enableMouse="true"
		hidden="true" parent="UIParent">
		<Size>
			<AbsDimension x="512" y="490"/>
		</Size>
		<Anchors>
			<Anchor point="LEFT" relativeTo="OutfitterFrame">
				<Offset><AbsDimension x="100" y="0"/></Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\MailFrame\Mail-Icon">
					<Size>
						<AbsDimension x="60" y="60"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="-5" y="7"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentButtonBarLeft" file="Interface\Addons\Outfitter\Textures\ScriptButtonBar">
					<Size><AbsDimension x="8" y="24"/></Size>
					<Anchors><Anchor point="BOTTOMLEFT"><Offset x="5" y="7"/></Anchor></Anchors>
					<TexCoords left="0" right="0.03125" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentButtonBarRight" file="Interface\Addons\Outfitter\Textures\ScriptButtonBar">
					<Size><AbsDimension x="8" y="24"/></Size>
					<Anchors><Anchor point="BOTTOMRIGHT"><Offset x="-7" y="7"/></Anchor></Anchors>
					<TexCoords left="0.96875" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture file="Interface\Addons\Outfitter\Textures\ScriptButtonBar">
					<Size><AbsDimension x="0" y="24"/></Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentButtonBarLeft" relativePoint="RIGHT"/>
						<Anchor point="RIGHT" relativeTo="$parentButtonBarRight" relativePoint="LEFT"/>
					</Anchors>
					<TexCoords left="0.03125" right="0.96875" top="0" bottom="1"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentTitle" text="Outfitter_cEditScript" inherits="GameFontHighlight">
					<Anchors>
						<Anchor point="TOP">
							<Offset x="17" y="-5"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentPresetScript" inherits="UIDropDownMenuTemplate" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="303" y="-28"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" text="Outfitter_cPresetScript" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="14" y="13"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						Outfitter.PresetScriptDropdown_OnLoad();
					</OnLoad>
					<OnShow>
						Outfitter.PresetScriptDropdown_OnLoad();
					</OnShow>
				</Scripts>
			</Frame>
			<Frame name="$parentSettings" hidden="true" setAllPoints="true">
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentDescription" inherits="GameFontHighlightLarge" justifyH="CENTER">
							<Size x="300" y="0"/>
							<Anchors>
								<Anchor point="TOP"><Offset><AbsDimension x="10" y="-78"/></Offset></Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentSource" hidden="true" setAllPoints="true">
				<Frames>
					<ScrollFrame name="$parentScript" inherits="OutfitterScrollableEditBox">
						<Size x="380" y="300"/>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="90" y="-85"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								getglobal(this:GetName().."Label"):SetText(Outfitter.cScriptLabel);
							</OnLoad>
						</Scripts>
					</ScrollFrame>
					
					<Frame name="$parentStatus">
						<Size>
							<AbsDimension x="400" y="40"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentScript" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-15"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<FontString name="$parentLabel" inherits="GameFontNormal" text="Status:" justifyH="RIGHT">
									<Anchors>
										<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPLEFT">
											<Offset>
												<AbsDimension x="-12" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
								
								<FontString name="$parentMessage" inherits="GameFontNormal" text="" justifyH="LEFT" justifyV="TOP" setAllPoints="true"/>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
			</Frame>
			
			<Button name="$parentCancelButton" inherits="UIPanelButtonTemplate" text="CANCEL">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-20" y="7"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn")
						this:GetParent():Close()
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentDoneButton" inherits="UIPanelButtonTemplate" text="OKAY">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parentCancelButton" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-7" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn")
						this:GetParent():Done()
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentTab1" inherits="OutfitterScriptTabTemplate" id="1" text="Outfitter_cSettings">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="6" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentTab2" inherits="OutfitterScriptTabTemplate" id="2" text="Outfitter_cSource">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentTab1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-14" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				Outfitter:ConstructFrame(this, Outfitter._EditScriptDialog)
			</OnLoad>
		</Scripts>
	</Frame>

</Ui>
